<!DOCTYPE >
<html lang="zh-cn">
<head>
		<title>充值记录-个人</title>
    <% include ../partials/head %>
        <script type="text/javascript">
        var oRecharge={
            operation:function(){
            },
            change:function(){
                var state =window.location.href.split("=")[1];
                $("#article-filter option[value='"+state+"']").attr("selected","selected");
                $("#article-filter").on("change",function(){
                    var value = $(this).children('option:selected').val(); 
                    window.location.href="/admin/rechargeRecord?status="+value;
                })
            },
            init:function(){
                this.operation();
                this.change();
            }
        }
        $(document).ready(function(){
            oRecharge.init();
        })
    </script>
</head>
<body>
	<header>
      <% include ../partials/header %>
	</header>
  <div class="ch-container">
    <% include ../partials/sidebar %>
    <!-- 页面内容 -->
    <!-- 页面内容 -->
    <div id="content" class="col-lg-10 col-sm-10">
        <div class="row">
          <div class="box col-md-12">
            <div class="box-inner">
              <div class="box-header well" data-original-title="">
                <div class="control-group">
                  <div class="controls">
                    <label class="control-label" for="selectError">筛选:&nbsp&nbsp&nbsp </label>
                    <select id="article-filter" >
                        <option value="0">前1000</option>
                        <option value="1000">1000~2000</option>
                        <option value="2000">2000~3000</option>
                        <option value="3000">3000~4000</option>
                        <option value="4000">4000~5000</option>
                        <option value="5000">5000~6000</option>
                        <option value="6000">6000~7000</option>
                        <option value="7000">7000~8000</option>
                        <option value="8000">8000~9000</option>
                        <option value="9000">9000~1w</option>
                    </select>
                  </div>

                </div>
              </div>

              <div class="box-content">
              	<div class="alert alert-info center title_info"></div>
                <table class="table table-striped table-bordered bootstrap-datatable datatable responsive">
                  <thead>
                    <tr>
                      <th>充值人</th>
                      <th>充值人ID</th>
                      <th>充值钱数</th>
                      <th>充值序列号</th>
                      <th>充值备注</th>
                      <th>充值时间</th>
                    </tr>
                  </thead>
                  <tbody>
                    <% if (typeof report != "undefined") { %>
                      <% report.forEach(function(report) { %>
                        <tr>
                          <td class="center"><a href="/admin/userinfo?userId=<%= report.get('user').id%>"><%= report.get("user").get("nickname") %></a></td>
                          <td class="center"><%= report.get('user').get("molianId") %></td>
                          <td class="center"><%= report.get("money") %></td>
                          <td class="center"><%= report.get("sn") %></td>
                          <td class="center"><%= report.get("remark") %></td>
                          <td class="center"><%=Format(new Date(report.createdAt))%></td>
                        </tr>
                      <% }) %>
                    <% } %>
                  </tbody>
                </table>
              </div>

            </div>
          </div>
        </div>
      </div> 
    <% include ../partials/footer %>
  </div>
  <% include ../partials/external %>
</body>
</html>